﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CTICompany.aspx.cs" Inherits="User_CTIReg_CTICompany" %>

<%@ Register src="../../Controls/Head.ascx" tagname="Head" tagprefix="uc1" %>

<%@ Register src="../../Controls/Foot.ascx" tagname="Foot" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script type="text/javascript" src="../../Scripts/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.validate.js"></script>
<script type="text/javascript" src="../../Scripts/messages_cn.js"></script>
<link type="text/css" href="../../CSS/style.css" rel="Stylesheet" />
<link href="../../css/website1.css" rel="stylesheet" type="text/css" />
<link href="../../css/reg.css" rel="stylesheet" type="text/css" />
    <title>立言咨询平台 - 注册新用户</title>
 <script type="text/javascript">
        $(function() { 
            jQuery.validator.addMethod("isMobile", function(value, element) {     
              var length = value.length;     
              return this.optional(element) || (length == 11 && /^(((13[0-9]{1})|18[0-9]{1}|(15[0-9]{1}))+\d{8})$/.test(value));     
            }, "请正确填写您的手机号码"); 
            jQuery.validator.addMethod("isPhone", function(value, element) {     
              var tel = /^(\d{3,4}-?)?\d{7,9}$/g;     
              return this.optional(element) || (tel.test(value));     
            }, "请正确填写您的电话号码"); 
            jQuery.validator.addMethod("isZipCode", function(value, element) {     
              var tel = /^[0-9]{6}$/;     
              return this.optional(element) || (tel.test(value));     
            }, "请正确填写您的邮政编码");    
                        $("#commentForm").validate(
           {
               errorClass: "error",
               ignoreTitle: true,
               rules: {
                   mobilePhone: {     
                    isMobile: true , required: true  
                   },
                   realName: {     
                    required: true     
                   },
                      email: {     
                    required: true,     
                    email: true     
                   },  
                      zipCode: {     
                        isZipCode:true     
                      },  
                    phone: {     
                    isPhone: true, required:true     
                   }
               },
               messages: {
                    mobilePhone:{required: "手机号不能为空！" },
                    realName:{required: "姓名不能为空！"},
                    phone:{required: "电话号码不能为空！"},
                    email: {required: "请输入一个Email地址",email: "请输入一个有效的Email地址"}  
                }
           });
        });        
    
    </script>
    <style type="text/css">
        .style1
        {
            width: 100%;
            height:450px;
        }
        .t1
        {
        	width:40px;
        	height:45px;
        	}
        .t2
        {
        	width:120px;
        	height:45px;
        	text-align:right;
        	font-size:12px;
        	color:#121D27;
        	border-bottom:dotted thin #ccc;
        	font-family:"宋体";
        	}
        .t3
        {
        	width:370px;
        	height:45px;
        	text-align:left;
        	border-bottom:dotted thin #ccc;
            font-weight: 700;
           
        }
        .t4
        {
        	width:210px;
        	height:45px;
        	text-align:left;
        	font-size:12px;
        	border-bottom:dotted thin #ccc;
        	 color:Gray;
        	}
        .t5
        {
        	width:50px;
        	height:55px;
        	}
        span
        {
        	color:Red;
        	}
                body
        {
            font-size:12px;
        }
        
        /* form中显示文字的label */
        .slabel
        {
        	width:142px;
        	display: -moz-inline-box;
        	line-height: 1.8;
        	display: inline-block;
        	text-align:right;
        }
        /* 出错样式 */
        input.error, textarea.error
        {
        	border: solid 1px #CD0A0A;
        }
        label.error
        {
        	color:#CD0A0A;
        	margin-left:5px;
        }
        /* 深红色文字 */
        .textred
        {
        	color:#CD0A0A;
        }	
    </style>
</head>
<body>
    <form id="commentForm" runat="server">
    <div id="big">
    <uc1:Head ID="Head1" runat="server" />
    <div id="main">
          <div id="r1"><div id="r11"><a href="#">&nbsp; &nbsp;立言注册</a>
              
              </div></div>
          <table align="center" class="style1">
            <tr>
                 <td class="t1">&nbsp;
                     </td>
                <td class="t2">
                    <span>*</span>公司名称：</td>
                <td class="t3">
                    <asp:TextBox ID="realName" runat="server" BorderWidth="1px" Height="20px" 
                        Width="200px" BorderColor="#036EB8"></asp:TextBox>
                        </td>
                <td class="t4">
                    例如：爱德华有限公司，建议使用中文。</td>
                <td class="t5">&nbsp;
                    </td>
            </tr>
            <tr>
                 <td class="t1">&nbsp;
                     </td>
                <td class="t2">
                    <span>*</span>电子邮件：</td>
                <td class="t3">
                    <asp:TextBox ID="email" runat="server" BorderWidth="1px" Height="20px" 
                        Width="200px" BorderColor="#036EB8"></asp:TextBox>
                        </td>
                <td class="t4">
                    没有电子邮件？推荐使用<a href="http://www.hotmail.com">Hotmail邮箱</a>、<a 
                        href="http://www.sohu.com">搜狐邮箱</a>和<a href="http://www.163.com">网易邮箱</a>。</td>
                <td class="t5">&nbsp;
                    </td>
            </tr>
            <tr>
                 <td class="t1">&nbsp;
                     </td>
                <td class="t2">
                    <span>*</span>联系电话：</td>
                <td class="t3">
                    <asp:TextBox ID="phone" runat="server" BorderWidth="1px" Height="20px" 
                        Width="200px" BorderColor="#036EB8"></asp:TextBox>
                        </td>
                <td class="t4">
                    例如：021-63932222</td>
                <td class="t5">&nbsp;
                    </td>
            </tr>
            <tr>
                <td class="t1">&nbsp;
                    </td>
                <td class="t2">
                    从事行业：</td>
                <td class="t3">
                    <asp:DropDownList ID="ddl_Vocation" runat="server" Width="200px">
                    </asp:DropDownList>
                        </td>
                <td class="t4">
                    例如：广告公司、建筑行业等</td>
                <td class="t5">&nbsp;
                    </td>
            </tr>

            <tr>
                 <td class="t1">&nbsp;
                     </td>
                <td class="t2">
                    联系地址：</td>
                <td class="t3">
                    <asp:TextBox ID="txt_Address" runat="server" BorderWidth="1px" Height="20px" 
                        Width="200px" BorderColor="#036EB8"></asp:TextBox>
                        </td>
                <td class="t4">
                    例如：上海市黄埔区XX号</td>
                <td class="t5">&nbsp;
                    </td>
            </tr>
            <tr>
                 <td class="t1">&nbsp;
                     </td>
                <td class="t2">
                    邮编：</td>
                <td class="t3">
                    <asp:TextBox ID="txt_ZipCode" runat="server" BorderWidth="1px" Height="20px" 
                        Width="200px" BorderColor="#036EB8"></asp:TextBox>
                        </td>
                <td class="t4">
                    例如：20006</td>
                <td class="t5">&nbsp;
                    </td>
            </tr>
        </table>
        <div style="width:990px; height:40px;"></div>
        <div style="width:648px; height:50px; text-align:left;">
            <asp:ImageButton ID="btn_Submit" runat="server" 
                ImageUrl="~/Images/RegImg/tijiao.gif" onclick="btn_Submit_Click" /> 
                </div>
        <div style="width:990px; height:50px;">         
          </div>
    </div>
    <uc2:Foot ID="Foot1" runat="server" />
    </div>
    </form>
</body>
</html>
